//获取基础配置
const config = require('./config')

var knex = require('knex')({
  client: 'mysql',
  connection:{
    host: config.mysql.host,
    port: config.mysql.port,
    user: config.mysql.user,
    password: config.mysql.pass,
    database: config.mysql.db
  }
})

//基础配置和sdk合并导出 
module.exports = { mysql: knex}